/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
//  返利子项目资金池查询 (OEM)

// 返利子项目有效期查询列表 POST /ttFiRebateSubprojectsAccount/queryList
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebateSubprojectsAccount/queryList`, params)

// 导出 POST /ttFiRebateSubprojectsAccount/export
export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebateSubprojectsAccount/export`, params, {
  responseType: 'blob'
})

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);

export const exportFrostAmountExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebateSubprojectsAccount/exportFrostAmountLog`, params, {
  responseType: 'blob'
})
